#ifndef QDRIVERLISTERNWIDGET_H
#define QDRIVERLISTERNWIDGET_H

#include <QWidget>
#include <QMap>
#include <QStackedWidget>

class QDeviceManager;
class QServerDriverListern;
struct tagDeviceInfo;
class QDriverTabView;
class QDriverDataWidget;

class QDriverListernWidget : public QWidget
{
    Q_OBJECT
public:
    explicit QDriverListernWidget(tagDeviceInfo* info,QWidget *parent = 0);
    
signals:
    
public slots:
    void    update_driver();
    void    add_message(const QString &data);
protected:
    QDeviceManager  *m_device_manager;
    QServerDriverListern    *m_driver_listern;
    tagDeviceInfo           *m_device_info;

    QDriverTabView  *m_tab_bar;
    QStackedWidget  *m_stacked_widget;

    QMap<QString,QDriverDataWidget*> m_widgets;
};

#endif // QDRIVERLISTERNWIDGET_H
